package com.yanqu.road.server.cmd.activity.doublespring.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.DoubleSpringProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.doublespring.DoubleSpringActivityMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_DOUBLE_SPRING_TEAM_SUCCESS_FROM_CROSS,desc = "踏春游记-跨服返回-成功组队")
public class DoubleSpringSuccessTeamFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        DoubleSpringProto.DoubleSpringCrossTeamSuccessSyncMsg reqMsg = DoubleSpringProto.DoubleSpringCrossTeamSuccessSyncMsg.parseFrom(packet.getBytes());
        DoubleSpringActivityMgr.successTeam(packet.getPlayerId(), reqMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
